package com.dtagri.fjwlw.bean;

import java.sql.Timestamp;
import java.util.Date;

/**
 * Tj20140591001Data entity. @author MyEclipse Persistence Tools
 */

public class TjData implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private Integer equipSnId;
	private Float value;
	private String unit;
	private Date retime;
	
	public String getUnit() {
		return unit;
	}
	
	public void setUnit(String unit) {
		this.unit = unit;
	}

	public Date getRetime() {
		return retime;
	}

	public void setRetime(Date retime) {
		this.retime = retime;
	}

	public Integer getEquipSnId() {
		return equipSnId;
	}

	public void setEquipSnId(Integer equipSnId) {
		this.equipSnId = equipSnId;
	}

	// Constructors

	/** default constructor */
	public TjData() {
	}

	/** full constructor */
	public TjData(Integer equipSnId, Float value, Timestamp retime) {
		this.equipSnId = equipSnId;
		this.value = value;
		this.retime = retime;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Float getValue() {
		return this.value;
	}

	public void setValue(Float value) {
		this.value = value;
	}

	@Override
	public String toString() {
		return "TjData [id=" + id + ", equipSnId=" + equipSnId + ", value="
				+ value + ", retime=" + retime + "]";
	}

}